//
//  XBridgeWebView.m
//  JSTest
//
//  Created by 奇林刘 on 2018/9/30.
//  Copyright © 2018年 奇林刘. All rights reserved.
//

#import "XBridgeWebView.h"

@implementation XBridgeWebView

- (instancetype)initWithFrame:(CGRect)frame configuration:(WKWebViewConfiguration *)configuration {
    self = [super initWithFrame:frame configuration:configuration];
    if (self) {
        [[XBridge shareXBridge] manageWebView:self];
    }
    return self;
}

- (void)dealloc {
    [[XBridge shareXBridge] abandonWebView:self];
}


@end
